<?php
/**
 * Created by PhpStorm.
 * User: lenovo
 * Date: 2017/4/18
 * Time: 15:55
 */
header("Content-Type: text/html; charset=UTF-8");
echo htmlspecialchars($_POST['name'])."<br/>";
echo (int)$_POST['age'];
?>
<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
</head>
<body>
<form action="" method="post">
    <p>姓名：<input type="text" name="name"></p>
    <p>年龄：<input type="text" name="age"></p>
    <p><input type="submit"></p>
</form>
</body>
</html>
